package cn.wolfcode.examples;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class MyDate {
    public static final MyDate DATE1 = new MyDate("qq",2L);
    public static final MyDate DATE2 = new MyDate("ZZ",1L);
    private String prefix;
    private Long time;

    public MyDate(String prefix, Long time) {
        this.prefix = prefix;
        this.time = time;
    }
    public void run(String value){
        System.out.println(DATE1 + value);
    }

}
